package it.koutifaris.travianmap.view.commandlistview;

import it.koutifaris.travianmap.command.Command;
import it.koutifaris.travianmap.command.NullCommand;

public class ListElement {

	private final String label;
	private final Command clickCommand;
	private final Command longClickCommand;

	public ListElement(String label, Command clickCommand) {
		this(label, clickCommand, NullCommand.nullCommand());
	}

	public ListElement(String label, Command clickCommand, Command longClickCommand) {
		this.label = label;
		this.clickCommand = clickCommand;
		this.longClickCommand = longClickCommand;
	}

	public String getLabel() {
		return label;
	}

	public Command getClickCommand() {
		return clickCommand;
	}

	public Command getLongClickCommand() {
		return longClickCommand;
	}

	@Override
	public String toString() {
		return getLabel();
	}
}
